package com.ruoyi.partscore.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.partscore.mapper.PartScoreMapper;
import com.ruoyi.partscore.domain.PartScore;
import com.ruoyi.partscore.service.IPartScoreService;

/**
 * 支部积分Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-26
 */
@Service
public class PartScoreServiceImpl implements IPartScoreService 
{
    @Autowired
    private PartScoreMapper partScoreMapper;

    /**
     * 查询支部积分
     * 
     * @param id 支部积分主键
     * @return 支部积分
     */
    @Override
    public PartScore selectPartScoreById(Long id)
    {
        return partScoreMapper.selectPartScoreById(id);
    }

    /**
     * 查询支部积分列表
     * 
     * @param partScore 支部积分
     * @return 支部积分
     */
    @Override
    public List<PartScore> selectPartScoreList(PartScore partScore)
    {
        return partScoreMapper.selectPartScoreList(partScore);
    }

    /**
     * 新增支部积分
     * 
     * @param partScore 支部积分
     * @return 结果
     */
    @Override
    public int insertPartScore(PartScore partScore)
    {
        return partScoreMapper.insertPartScore(partScore);
    }

    /**
     * 修改支部积分
     * 
     * @param partScore 支部积分
     * @return 结果
     */
    @Override
    public int updatePartScore(PartScore partScore)
    {
        return partScoreMapper.updatePartScore(partScore);
    }

    /**
     * 批量删除支部积分
     * 
     * @param ids 需要删除的支部积分主键
     * @return 结果
     */
    @Override
    public int deletePartScoreByIds(Long[] ids)
    {
        return partScoreMapper.deletePartScoreByIds(ids);
    }

    /**
     * 删除支部积分信息
     * 
     * @param id 支部积分主键
     * @return 结果
     */
    @Override
    public int deletePartScoreById(Long id)
    {
        return partScoreMapper.deletePartScoreById(id);
    }
}
